package com.ruoyi.lnb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lnb.mapper.ActivitiesMapper;
import com.ruoyi.lnb.domain.Activities;
import com.ruoyi.lnb.service.IActivitiesService;

/**
 * 活动管理Service业务层处理
 * 
 * @author lnb
 * @date 2022-04-05
 */
@Service
public class ActivitiesServiceImpl implements IActivitiesService 
{
    @Autowired
    private ActivitiesMapper activitiesMapper;

    /**
     * 查询活动管理
     * 
     * @param aid 活动管理主键
     * @return 活动管理
     */
    @Override
    public Activities selectActivitiesByAid(Long aid)
    {
        return activitiesMapper.selectActivitiesByAid(aid);
    }

    /**
     * 查询活动管理列表
     * 
     * @param activities 活动管理
     * @return 活动管理
     */
    @Override
    public List<Activities> selectActivitiesList(Activities activities)
    {
        return activitiesMapper.selectActivitiesList(activities);
    }

    /**
     * 新增活动管理
     * 
     * @param activities 活动管理
     * @return 结果
     */
    @Override
    public int insertActivities(Activities activities)
    {
        return activitiesMapper.insertActivities(activities);
    }

    /**
     * 修改活动管理
     * 
     * @param activities 活动管理
     * @return 结果
     */
    @Override
    public int updateActivities(Activities activities)
    {
        return activitiesMapper.updateActivities(activities);
    }

    /**
     * 批量删除活动管理
     * 
     * @param aids 需要删除的活动管理主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesByAids(Long[] aids)
    {
        return activitiesMapper.deleteActivitiesByAids(aids);
    }

    /**
     * 删除活动管理信息
     * 
     * @param aid 活动管理主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesByAid(Long aid)
    {
        return activitiesMapper.deleteActivitiesByAid(aid);
    }
}
